#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::moveEvent(QMoveEvent *event)
{
    qDebug() << "当前窗口的位置: " << event->pos();

}

void Widget::resizeEvent(QResizeEvent *event)
{
    qDebug() << "当前窗口的大小: " << event->size();

}

